﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TnPictureBox
{
    public partial class TnPictureBox : PictureBox
    {
        public TnPictureBox()
        {
            InitializeComponent();
        }

        private void TnPictureBox_MouseUp(object sender, MouseEventArgs e)
        {
            this.BorderStyle = BorderStyle.None;
        }

        private void TnPictureBox_MouseDown(object sender, MouseEventArgs e)
        {
            this.BorderStyle = BorderStyle.Fixed3D;
        }

        private void TnPictureBox_MouseLeave(object sender, EventArgs e)
        {
            this.BorderStyle = BorderStyle.None;
        }

        private void TnPictureBox_MouseHover(object sender, EventArgs e)
        {
            //if (this.BorderStyle != BorderStyle.Fixed3D)
            //{
            //    this.BorderStyle = BorderStyle.FixedSingle;
            //}
        }
    }
}
